package com.zqh.template.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TemplateMakerModelConfig {


    private List<ModelInfoConfig> models;
    private ModelGroupConfig modelGroupConfig;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class ModelGroupConfig{
        private String groupKey;
        private String groupName;
        private String condition;
        private String type;
        private String description;

    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class ModelInfoConfig{
        private String fieldName;
        private String type;
        private String description;
        private Object defaultValue;
        private String abbr;
        // 替换文本
        private String replaceText;

    }

}
